<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop === '0'">
      <sort />
    </template>
    <template v-else-if="tabsType.prop === '1'">
      <sortLarge />
    </template>
    <template v-else-if="tabsType.prop === '2'">
      <sortSmall />
    </template>
    <template v-else-if="tabsType.prop === '3'">
      <brand />
    </template>
  </basic-container>
</template>

<script>
import sort from "./components/storeType/sort";
import sortLarge from "./components/storeType/sortLarge";
import sortSmall from "./components/storeType/sortSmall";
import brand from "./components/storeType/brand";
export default {
  components: {
    sort,
    sortLarge,
    sortSmall,
    brand
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "行业分类",
            prop: "0"
          },
          {
            label: "行业大类",
            prop: "1"
          },
          {
            label: "行业小类",
            prop: "2"
          },
          {
            label: "品牌分类",
            prop: "3"
          }
        ]
      },
    };
  },
  computed: {
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
    }
  },
};
</script>

<style scoped>
::v-deep .el-date-editor .el-range__close-icon{
  margin-right: 10px;
}
</style>